<?php

function path($p) {
	$p = realpath($p);
	if ($p[strlen($p)-1] != DIRECTORY_SEPARATOR) {
		$p .= DIRECTORY_SEPARATOR;
	}
	return $p;
}

$CURRENT_PATH = dirname(__FILE__).DIRECTORY_SEPARATOR;
define('RACINE_PATH', path($CURRENT_PATH.'../'));
define('INCLUDE_PATH', path($CURRENT_PATH));

require_once(RACINE_PATH.'../libs/mikubook-webapp/view.helper.php');
require_once(INCLUDE_PATH.'view.functions.php');

?>